dateformat.htmlHTMLudog2öπùΔ¢πùΔ¢Åŵy Monkeybread Realbasic plugin - Documentation - DateFormat

MBS Plugin Documentation

This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.

This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.

The list of the themes Global methods by category Global methods by name The list of the classes The list of the controls

class DateFormat

class, Currency, Date and Time Format Mo, 19. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Does nothing.
Function: The date format settings on Mac OS.

AbbreviationLength as integer

property, Currency, Date and Time Format Mo, 19. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> 0.
Function: The number of characters to which month and day names should be abbreviated when abbreviation is desired.

DayName(index as integer) as string

property, Currency, Date and Time Format Mo, 19. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> "".
Function: The names of the day.
Notes: Sunday is index 0 and Saturday index 6.

LeadingZeroForDay as boolean

property, Currency, Date and Time Format Mo, 19. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> false.
Function: Use a leading zero for day?

LongDateFormat as integer

property, Currency, Date and Time Format Mo, 19. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> 0.
Function: Use a leading zero for day?
Notes:
The byte that indicates the order of long date elements. If the byte value of the field is neither 0 (which specifies an order of day/month/year) nor $FF (which specifies an order of month/day/year), then its value is divided into 4 fields of 2 bits each. The least significant bit field (bits 0 and 1) corresponds to the first element in the long date format, whereas the most significant bit field (bits 6 and 7) specifies the last (fourth) element in the format. You can use the following predefined constants to set each bit field to the appropriate value.
ConstantValueExplanation
longDay0Day of the month
longWeek1Day of the week
longMonth2Month
longYear3Year

Note that these constants represent values for the 2-bit field, and are neither masks nor bit numbers. For example, suppose you wanted long dates to appear in this order: day of the week, day of the month, month, and year. You would set the value of longDateFmt like this:

longDateFmt :=
longWeek*1 {sets bits 0 and 1}
+ LongDay*4 {sets bits 2 and 3}
+ longMonth*16 {sets bits 4 and 5}
+ longYear*64; {sets bits 6 and 7}

LongDateFormatString as string

property, Currency, Date and Time Format Mo, 19. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> "".
Function: The format string for the long date.
Notes:
A combination of "day", "month", "year", "day of month" and "day of week".
e.g. "day/month/year" in Germany and "month/day/year" in USA.

LongDateSeparator(index as integer) as string

property, Currency, Date and Time Format Mo, 19. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> "".
Function: The separator for the long date.
Notes: Index from 0 to 4.

MonthName(index as integer) as string

property, Currency, Date and Time Format Mo, 19. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> "".
Function: The names of the month.
Notes: January is index 0 and December index 11.

Ok as boolean

property, Currency, Date and Time Format Mo, 19. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> false.
Function: Are the settings ok?
Notes:
If you make a new instance of the class the values are placed into this object and ok shows you if this worked.
So ok is false on Windows.

SuppressDayOfMonth as boolean

property, Currency, Date and Time Format Mo, 19. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> false.
Function: Suppress day name?

SuppressDayOfMonth as boolean

property, Currency, Date and Time Format Mo, 19. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> false.
Function: Suppress day of month?

SuppressMonth as boolean

property, Currency, Date and Time Format Mo, 19. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> false.
Function: Suppress month?

SuppressYear as boolean

property, Currency, Date and Time Format Mo, 19. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> false.
Function: Suppress year?

Contact

Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.

This resource fork intentionally left blank ˇˇ